package com.cong.project.model.enums;

/**
 *  点赞状态枚举类
 *
 * @author 聪
 */
public enum LikeStatusEnum {
    /**
     * 点赞状态枚举类
     */
    IS_LIKE(1, "点赞"),

    NO_LIKE(0, "未点赞");


    private final int code;

    /**
     * 状态码信息
     */
    private final String message;



    LikeStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public static LikeStatusEnum geEnumByValue(Integer code){
        if (code==null){
            return null;
        }
        LikeStatusEnum[] values = LikeStatusEnum.values();
        for (LikeStatusEnum teamStatusEnum : values) {
            if (teamStatusEnum.getCode() ==code){
                return teamStatusEnum;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
